package com.assessment.entity;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity

@Table(name="t_assessment_index")
public class AssessmentIndex
{
	private Long id;
	private String name;
	private String description;
	private Integer score;
	private AssessmentTemplate assessmentTemplate;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getId() {		
		return id;
	}
	
	public String getName() {
		return name;
	}
	public String getDescription () {
		return description;
	}
	public Integer getScore() {
		return score;
	}
	@ManyToOne(cascade=CascadeType.ALL)
	public AssessmentTemplate getAssessmentTemplate() {		
		return assessmentTemplate;	 
	}
	
	public void setId(Long id) {
		this.id = id;
	}
	
	
	public void setName(String name) {
		this.name = name;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public void setScore(Integer score) {
		this.score = score;
	}
	public void setAssessmentTemplate(AssessmentTemplate assessmentTemplate) {	 
		this.assessmentTemplate = assessmentTemplate;		 
	}		
 	 		
}
